package com.sundi.ecgeneralize.service.impl;

import com.sundi.ecgeneralize.dto.TopicDto;
import com.sundi.ecgeneralize.entity.EcCoupon;
import com.sundi.ecgeneralize.entity.EcTopic;
import com.sundi.ecgeneralize.mapper.EcTopicMapper;
import com.sundi.ecgeneralize.service.IEcTopicService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 专题表 服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-26
 */
@Service
public class EcTopicServiceImpl extends ServiceImpl<EcTopicMapper, EcTopic> implements IEcTopicService {

    @Override
    public List<EcTopic> selectTopicList(TopicDto topicDto) {
        return this.baseMapper.selectTopicList(topicDto);
    }

    @Override
    public void updAndDel(Integer id) {
        this.baseMapper.updAndDel(id);
    }

    @Override
    public EcTopic getTopic(Integer id) {
        return this.baseMapper.getTopic(id);
    }

    @Override
    public EcTopic getPic(Integer id) {

        return this.baseMapper.getPic(id);
    }

    @Override
    public void deleteAll(String ids) {
        this.baseMapper.deleteAll(ids);
    }


}
